package net.dgg.zz.production.leadingInPorderOrder.controller;

import net.dgg.framework.tac.utils.bean.DggRestResponse;
import net.dgg.framework.tac.utils.web.commmon.DggBaseController;
import net.dgg.zz.production.leadingInPorderOrder.service.LeadingInProductOrderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * <p>@Title 导入Controller</p>
 * <p>@Description 办理中相关</p>
 * <p>@Version 1.0.0 版本号</p>
 * <p>@author maoquanyi</p>
 * <p>@date 2018年08月13日</p>
 * <p>Copyright © dgg group.All Rights Reserved. 版权信息</p>
 */
@Controller
@RequestMapping("/zzsc/leading")
public class LeadingInProductOrderController extends DggBaseController {

    //新的引入
    @Resource
    private LeadingInProductOrderService leadingInProductOrderService;


    /**
     * <p>@Description 导入数据</p>
     * <p>@author mqy</p>
     * <p>@Time 2018/8/31 0031 16:19 创建时间</p>
     * <p>@return</p>
     */
    @RequestMapping("/leading_in_product_order_zidong")
    @ResponseBody
    public DggRestResponse leadingInProductOrderZidong() {
        try {
            leadingInProductOrderService.leadingInProductOrderZidong();
            return this.getSuccessResponse("导入成功!");
        } catch (Exception e) {
            e.printStackTrace();
            return this.getFailResponse("系统异常!");
        }
    }
}
